<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewProvaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewProvaLabel_provaId}"/>
                    <h:outputText value="#{provaController.selected.provaId}" title="#{bundle.ViewProvaTitle_provaId}"/>
                    <h:outputText value="#{bundle.ViewProvaLabel_titulo}"/>
                    <h:outputText value="#{provaController.selected.titulo}" title="#{bundle.ViewProvaTitle_titulo}"/>
                    <h:outputText value="#{bundle.ViewProvaLabel_descricao}"/>
                    <h:outputText value="#{provaController.selected.descricao}" title="#{bundle.ViewProvaTitle_descricao}"/>
                    <h:outputText value="#{bundle.ViewProvaLabel_tempolimite}"/>
                    <h:outputText value="#{provaController.selected.tempolimite}" title="#{bundle.ViewProvaTitle_tempolimite}">
                        <f:convertDateTime pattern="HH:mm:ss" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewProvaLabel_disponivelapartide}"/>
                    <h:outputText value="#{provaController.selected.disponivelapartide}" title="#{bundle.ViewProvaTitle_disponivelapartide}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewProvaLabel_disponivellate}"/>
                    <h:outputText value="#{provaController.selected.disponivellate}" title="#{bundle.ViewProvaTitle_disponivellate}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewProvaLabel_qtdQuestoes}"/>
                    <h:outputText value="#{provaController.selected.qtdQuestoes}" title="#{bundle.ViewProvaTitle_qtdQuestoes}"/>
                    <h:outputText value="#{bundle.ViewProvaLabel_notamaxima}"/>
                    <h:outputText value="#{provaController.selected.notamaxima}" title="#{bundle.ViewProvaTitle_notamaxima}"/>
                    <h:outputText value="#{bundle.ViewProvaLabel_autorUsuarioId}"/>
                    <h:outputText value="#{provaController.selected.autorUsuarioId}" title="#{bundle.ViewProvaTitle_autorUsuarioId}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{provaController.destroyAndView}" value="#{bundle.ViewProvaDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewProvaEditLink}"/>
                <br />
                <h:commandLink action="#{provaController.prepareCreate}" value="#{bundle.ViewProvaCreateLink}" />
                <br />
                <h:commandLink action="#{provaController.prepareList}" value="#{bundle.ViewProvaShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewProvaIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
